-- GENERATED SPELL FOR [Boahn] --


function spell0_3672(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(5187,pUnit)
pUnit:RegisterEvent('Sorts_3672', 2500, 1)
end

function spell1_3672(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3672', 3000, 1)
end

function spell2_3672(pUnit, Event) --@Serpent Form,Self--
pUnit:FullCastSpellOnTarget(8041,pUnit)
pUnit:RegisterEvent('Sorts_3672', 10272, 1)
end

function Sorts_3672(pUnit, Event)
local choix_sorts_3672 = math.random(0, 2)
if choix_sorts_3672 == 0 then
pUnit:RegisterEvent('spell0_3672', 1, 1)
end
if choix_sorts_3672 == 1 then
pUnit:RegisterEvent('spell1_3672', 1, 1)
end
if choix_sorts_3672 == 2 then
pUnit:RegisterEvent('spell2_3672', 1, 1)
end
end

function mob3672_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3672', math.random(1500, 3000), 1)
end

function mob3672_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3672_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3672_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3672, 1, 'mob3672_Action')
RegisterUnitEvent(3672, 2, 'mob3672_Leave')
RegisterUnitEvent(3672, 3, 'mob3672_Kill')
RegisterUnitEvent(3672, 4, 'mob3672_Die')
